<p>search works!</p>
<h1>搜索</h1>
<div class="search-box">
  <p><input type="text" [(ngModel)]="searchWords"><button (click)="handleSearch()">搜索</button></p>
  <ul>
    <li class="li-title">历史记录</li>
    <li *ngFor="let item of searchHistory" class="li-item">
      {{item}} <span (click)="delHistory(item)" class="del-btn">删除</span>
    </li>
  </ul>
</div>

<p>这里是父组件传递的数据： {{msg}}</p>
<button (click)="doting()">给父组件传值</button>